﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using OnlineUserBlock.Components;

namespace PhotoGallery.Application.OnlineUserProvider
{
    public class UserInfoProvider : oluUserInfoProvider
    {
        public override void AuthenticationSignout()
        {
            FormsAuthentication.SignOut();
        }

        public override oluUserInfo CreateMember(string IdentityName)
        {
            string nick = string.Format(IdentityName);
            oluUserInfo ui = new UserExtend(IdentityName, nick, false, null);
            return ui;
        }

        public override oluUserInfo CreateGuest()
        {
            oluUserInfo ui = new UserExtend("Guest", "Guest", true, null);
            return ui;
        }
    }
}
